package com.shushan.home;

import android.app.Activity;
import android.os.Bundle;
import android.support.annotation.Nullable;
import android.view.View;
import android.widget.RelativeLayout;

import com.shushan.base.ScreenManager;
import com.shushan.shushanbao.R;
import com.shushan.util.UmengEventUtil;

/**
 * @ClassName: ControlGuideActivity
 * @Desciption: 开启控制引导
 * @author: yichaohua
 * @date: 2018-08-23
 */
public class ControlGuideActivity extends Activity implements View.OnClickListener {

    private static final String TAG = "ControlGuideActivity";

    private RelativeLayout guideLayout;

    @Override
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);

        setContentView(R.layout.control_guide_activity);

        ScreenManager sm = new ScreenManager();
        sm.setStatusBar(true,this);

        initView();
    }

    @Override
    protected void onResume() {
        super.onResume();

        UmengEventUtil.onResume(this); // 基础指标统计，不能遗漏
    }

    @Override
    protected void onPause() {
        super.onPause();

        UmengEventUtil.onPause(this); // 基础指标统计，不能遗漏
    }

    private void initView() {
        guideLayout = findViewById(R.id.control_guide_layout);
        guideLayout.setOnClickListener(this);
    }

    @Override
    public void onClick(View v) {
        switch (v.getId()){
            case R.id.control_guide_layout:
                finish();
                break;
            default:
                break;
        }

    }
}
